package io1;

public class TryCatchDemo {
    public static void main(String[] args) {
        System.out.println("开始");
        try{
            String a=null;
            System.out.println(a.length());

        }catch (NullPointerException e){
            System.out.println("解决问题");
        }
        System.out.println("结束");
    }
}
